//
//  OAuthViewController.swift
//  SinaWeibo
//
//  Created by paycloud110 on 16/6/4.
//  Copyright © 2016年 paycloud110. All rights reserved.
//

import UIKit

class OAuthViewController: UIViewController {

    @IBOutlet weak var OAuthWebView: UIWebView!
    override func viewDidLoad() {
        super.viewDidLoad()
        
        automaticallyAdjustsScrollViewInsets = false
    }
    private func loadPageWeibo() {
        let url = NSURL(string: "")
        let request = NSURLRequest(URL: url!)
        OAuthWebView.loadRequest(request)
    }

    @IBAction func closeItemButtonClick(sender: AnyObject) {
        dismissViewControllerAnimated(true, completion: nil)
    }
    @IBAction func addInItemButtonClick(sender: AnyObject) {
        let js = "doucument.getElementById('userId').value = '745576950@qq.com';"
        OAuthWebView.stringByEvaluatingJavaScriptFromString(js)
    }
}
